package com.peaksport.framework.vo;

import java.io.Serializable;

import com.peaksport.pkms.oauth.entity.ClientEntity;
import com.peaksport.pkms.permit.entity.UserEntity;

import lombok.Getter;
import lombok.Setter;

/**
 * 登录会话信息
 * 1. 如果是第三方token登录的会话,isToken=true
 * 2. 当isToken=true时
 * 	   a. sessionId等于token
 *     b. 
 * 3. 当isToken=false时
 * 	  a. token = null
 *    b. clientEntity = null 
 * 
 * 
 * @author jinbin_guo  2019年4月22日 下午4:14:51
 *
 */
@SuppressWarnings("serial")
@Getter
@Setter
public class SessionInfo implements Serializable {
	/** 生成sessionId的uuidType*/
	public static final String uuidType = "5CBC77DF";
	/** 是否第三方token登录的会话,当isToken=true是，token等于sessionId*/
	private boolean tokenLogin;
	private String token;
	private String sessionId;
	private UserEntity userEntity;
	private ClientEntity clientEntity;
	

}
